import {
	createRouter,
	createWebHashHistory
} from 'vue-router'
import LoginPage from '../views/LoginPage.vue';
import Main from '@/views/page/Main.vue';
import MLogin from '@/views/page/mobile/MLogin.vue';
import MMain from '@/views/page/mobile/MMain.vue';
import WebIDE from '@/views/devpage/webide/WebIDE.vue';
import InitDB from '../views/InitDB.vue'
const routes = [{
		path: '/',
		name: 'LoginPage',
		component: LoginPage
	}, {
		path: '/mlogin',
		name: 'MLogin',
		component: MLogin
	}, {
		path: '/mmain',
		name: 'MMain',
		component: MMain
	},{
		path: '/webide',
		name: 'WebIDE',
		component: WebIDE
	},{
		path: '/main',
		name: 'Main',
		component: Main
	}, {
		path: "/initdb",
		component: InitDB
	}
]

const router = createRouter({
	history: createWebHashHistory(),
	routes
})

export default router
